Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

409
Views
Unhandled promise rejection: Error: [storage/unknown] An unknown error has occurred (ios)

After uploading image Blob to Cloud Storage , I'm getting this error ,and my image uploaded successfully

`[Unhandled promise rejection: Error: [storage/unknown] An unknown error has occurred.]
at node_modules/@react-native-firebase/storage/lib/StorageTask.js:152:22 in get__then
- ... 10 more stack frames from framework internals` 

Any clue please ? Am i missing something ?

Versions

"@react-native-firebase/app": "14.7.0",

"@react-native-firebase/auth": "14.7.0",

"@react-native-firebase/firestore": "14.7.0",

"@react-native-firebase/storage": "^14.7.0",

const getPictureBlob = (uri) => {
  console.log("uri", uri);
  return new Promise((resolve, reject) => {
    const xhr = new XMLHttpRequest();
    xhr.onload = function () {
      resolve(xhr.response);
    };
    xhr.onerror = function (e) {
      console.log(e);
      reject(new TypeError("Network request failed"));
    };
    xhr.responseType = "blob";
    xhr.open("GET", uri, true);
    xhr.send(null);
  });
};



 const upload = async (
    values,
    formikHelpers
  ) => {
    let blob: any;
    try {
      blob = await getPictureBlob(values.photo);
      const ref = await storage().ref().child(currentUser.uid);
      const snapshot = await ref.put(blob);
     
      let remoteUrl = snapshot.ref.getDownloadURL();
      console.log("remoteUrl", remoteUrl);
    } catch (e) {
      console.log("Error", e);
    } finally {
      blob.close();

    }
  };
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!